package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportService {

    /**
     * 统计时间段内的营业额
     * @param beginTime
     * @param endTime
     * @return
     */
    TurnoverReportVO getTurnoverStatics(LocalDate beginTime, LocalDate endTime);


    /**
     * 统计时间段内的用户数量增长
     * @param begin
     * @param end
     */
    UserReportVO getUserStatics(LocalDate begin, LocalDate end);


    /**
     * 订单数量统计
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 销量前十统计
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);
}
